package com.hhsj.dynamicui.model;


import com.hhsj.dynamicui.model.base.JSONAble;

import java.io.Serializable;

/**
 * 常量
 */
public class ConstantModel implements Serializable, JSONAble {

    private String const_id;//主键id
    private String const_type;//常量类型 这个只有固定的几种 widget_layout
    private String const_code;//常量编码 banner_page
    private String const_name;//常量名称 轮播图
    private String desc;//常量描述  普通翻页效果轮播图


    public ConstantModel() {
    }

    public ConstantModel(String const_id, String const_type, String const_code, String const_name, String desc) {
        this.const_id = const_id;
        this.const_type = const_type;
        this.const_code = const_code;
        this.const_name = const_name;
        this.desc = desc;
    }

    public String getConst_id() {
        return const_id;
    }

    public void setConst_id(String const_id) {
        this.const_id = const_id;
    }

    public String getConst_type() {
        return const_type;
    }

    public void setConst_type(String const_type) {
        this.const_type = const_type;
    }

    public String getConst_code() {
        return const_code;
    }

    public void setConst_code(String const_code) {
        this.const_code = const_code;
    }

    public String getConst_name() {
        return const_name;
    }

    public void setConst_name(String const_name) {
        this.const_name = const_name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    @Override
    public String toString() {
        return "ConstantModel{" +
                "const_id='" + const_id + '\'' +
                ", const_type='" + const_type + '\'' +
                ", const_code='" + const_code + '\'' +
                ", const_name='" + const_name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

    @Override
    public String toJSONString() {
        return "{" +
                "\n    \"const_id\":\"" + const_id + "\"," +
                "\n    \"const_type\":\"" + const_type + "\"," +
                "\n    \"const_code\":\"" + const_code + "\"," +
                "\n    \"const_name\":\"" + const_name + "\"," +
                "\n    \"desc\":\"" + desc + "\"" +
                "\n}";
    }
}
